package com.eric.service;
import cn.dev33.satoken.util.SaResult;
import com.eric.domain.po.UserPermission;
import com.github.yulichang.base.MPJBaseService;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户权限表 服务类
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
public interface IUserPermissionService extends MPJBaseService<UserPermission> {

    SaResult saveUserPermission(Map<String, List<Integer>> paramMaps);

    List<String> getLoginUserPermissionList(Object loginId, String s);

    SaResult deleteUserPermissionsService(Map<String, List<Integer>> ids);

    SaResult getAllService(Integer current, Integer pageSize);

    SaResult getByUserIdService(Integer userId);

    SaResult getByIdService(Integer id);

    SaResult getByPermissionIdService(Integer permissionId, Integer current, Integer pageSize);

    SaResult updateUserPermission(Map<String, List<Integer>> paramMaps);
}
